package com.bj58.wf.training.first.interceptors;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.bj58.wf.mvc.annotation.Interceptor;

/**
 * 设置一个拦截器
 * @author renjun
 *
 */
@Interceptor(CrazyInterceptor.class)
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Crazy {
	
	/**
	 * 可以定义拦截器的的优先级，0，1，2,...
	 * @return
	 */
	int order() default  1;
}
